home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / libraries / unknown < prev   
Encoding:
Text File  |  1993-10-26  |  1.3 KB  |  27 lines  |  [TEXT/$Tcl]

  1.  
  2.           unknown cmdName ?arg arg ...?
  3.  
  4.  
  5.      DESCRIPTION
  6.           This command doesn't actually exist as part of Tcl, but  Tcl
  7.           will  invoke  it  if  it does exist.  If the Tcl interpreter
  8.           encounters a command name for which there is not  a  defined
  9.           command,  then  Tcl  checks  for  the existence of a command
  10.           named unknown.  If there is no such command, then the inter-
  11.           peter returns an error.  If the unknown command exists, then
  12.           it is  invoked  with  arguments  consisting  of  the  fully-
  13.           substituted name and arguments for the original non-existent
  14.           command.  The unknown command  typically  does  things  like
  15.           searching  through  library  directories  for a command pro-
  16.           cedure with the name cmdName, or expanding abbreviated  com-
  17.           mand  names  to full-length, or automatically executing unk-
  18.           nown commands as sub-processes.   In  some  cases  (such  as
  19.           expanding  abbreviations)  unknown  will change the original
  20.           command slightly and then (re-)execute it.   The  result  of
  21.           the  unknown  command is used as the result for the original
  22.           non-existent command.
  23.  
  24.  
  25.      KEYWORDS
  26.           error, non-existent command
  27.